package routes

import (
	"gitee.com/song-yao-shun/MQH/controller"
	"gitee.com/song-yao-shun/MQH/middleware"
	"github.com/gin-gonic/gin"
)

func DictRoutes(r *gin.Engine){
	NCtl := controller.NewDictController()

	fct := r.Group("api/dicts",middleware.AuthMiddleware())
	{
		fct.POST("",NCtl.Create)
		//fct.PUT("/:id",NCtl.Update)
		//fct.GET("/:id",NCtl.Show)
		//fct.DELETE("/:id",NCtl.Delete)
		fct.POST("/getall",NCtl.List)
	}
}